<%
session.removeAttribute("MASTER_LOGIN");
session.invalidate();
//cookies
Cookie c_loginId = new Cookie("LOGIN_ID",null);
Cookie c_password = new Cookie("PASSWORD",null);
c_loginId.setMaxAge(0);
c_password.setMaxAge(0);
response.addCookie(c_loginId); 
response.addCookie(c_password); 
//response.sendRedirect("master_login.jsp?redirectUrl=main.jsp");//无法实现整个框架页的跳转，采用JS
%>
<script language="javascript">
top.location.href="master_login.jsp";
</script>